<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心 - [.$emmm_web.website.]</title>
<link rel="stylesheet" href="[.$templatepath.]css/style.css" type="text/css" />
<script type="text/javascript" src="[.$webpath.]function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" href="[.$webpath.]function/plugs/YIQI-UI/YIQI-UI.min.css" type="text/css" />
</head>
<body>
<div id="YIQI-UI">
    [.include file="cn_top.html".]
    <div class="clear"></div>
    <div class="emmm_center">
        <div class="clear"></div>
        <div class="emmm_login">
              <div class="logo_font mb-40">找回密码</div>
              <div class="clear"></div>
              
              <div class="f-l emmm_left">
                [.*找回密码表单开始*.]
				<script type="text/javascript">
					var wait=120; 
					function anniu(){
						if (wait == 0) { 
							$('#btn').attr("disabled", false);
							$('#btn').val('获取验证码');
							$("#btn").removeClass("disabled").addClass("btn-success");
							wait = 120; 
						} else { 
							$('#btn').attr("disabled", true); 
							$('#btn').val('重新发送(' + wait + ')');
							$("#btn").removeClass("btn-success").addClass("disabled");
							wait--; 
							setTimeout(function() { 
								anniu();
							}, 1000) 
						};
					}
					function reg_code(){
						var user = $("input[name='COL_Useremail']").val();
						var reg = $("input[name='COL_Useretel']").val();
						if(reg == ''){
							alert('* 号不能为空!');
							return false;
						}
						$.ajax({  
								type:'get',
								url : '[.$webpath.]client/user/?[.$ip.lang.]-password.html-&user=telcode&zh='+reg+'&username='+user,
								dataType : 'jsonp',  
								jsonp:"jsoncallback",
								async:true,
								beforeSend:function(){},
								success:function(data){
									if(data == '-1'){
										alert("发送失败！~");
									}else{
										anniu();
									}
								},
								complete:function(){},
								error:function(){}
						});
					}
                </script>
                [.if empty($smarty.get.user).]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-password.html-&user=email" class="registerform">
                <table width="100%" border="0" class="table table-hover">
                      <tr>
                        <td><div align="right">输入要找回的账号：</div></td>
                        <td><input type="text" name="COL_Useremail" class="input" datatype="*" value="E-mail 或 手机号码" onfocus="if (value =='E-mail 或 手机号码'){value =''}" onblur="if (value ==''){value='E-mail 或 手机号码'}" /> <font color="#FF0000">*</font></td>
                      </tr>
                      <tr>
                        <td><div align="right">验证码：</div></td>
                        <td><input type="text" name="code" class="input3" datatype="*" onfocus="document.getElementById('checkcode').src+='?'" /> <font color="#FF0000">*</font>&nbsp;<img title="点击刷新" id="checkcode" src="[.$webpath.]function/emmm_code.php" align="absbottom" onclick="this.src='[.$webpath.]function/emmm_code.php?'+Math.random();" width="80" height="25"></img></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger radius-5 pt-10 pb-10 pl-20 pr-20 mt-10" /></td>
                      </tr>
                </table>
                </form>
                [.elseif $smarty.get.user == 'email'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-password.html-&user=faq" class="registerform">
				[.if $usercontrol['telsms'] == 0.]
                <table width="100%" border="0" class="table table-hover">
                      <tr>
                        <td><div align="right">验证答案：</div></td>
                        <td>[.$faq[2].]</td>
                      </tr>
                      <tr>
                        <td><div align="right">输入答案：</div></td>
                        <td><input type="text" name="COL_Useranswer" class="input" datatype="*" /> <font color="#FF0000">*</font>
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
                          <input type="hidden" name="COL_Usercode" value="[.$faq[3].]" />
                        </td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger radius-5 pt-10 pb-10 pl-20 pr-20 mt-10" /></td>
                      </tr>
                </table>
				[.elseif $usercontrol['telsms'] == 1.]
                <table width="100%" border="0" class="table table-hover">
                      <tr>
                        <td><div align="right">手机号码：</div></td>
                        <td>[.$faq[4].]</td>
                      </tr>
                      <tr>
                        <td><div align="right">验证码：</div></td>
                        <td><input type="text" name="COL_Userpasscode" class="input3" datatype="*" /> <font color="#FF0000">*</font>
						<input onclick="reg_code();" id="btn" type="button" class="btn btn-success radius-5 ml-10 pd-5" value="获取验证码" />
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
						  <input type="hidden" name="COL_Usercode" value="[.$faq[3].]" />
                          <input type="hidden" name="COL_Useretel" value="[.$faq[4].]" />
                        </td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger radius-5 pt-10 pb-10 pl-20 pr-20 mt-10" /></td>
                      </tr>
                </table>
				[./if.]
                </form>
                [.elseif $smarty.get.user == 'faq'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-password.html-&user=ok" class="registerform">
                <table width="100%" border="0" class="table table-hover">
                      <tr>
                        <td><div align="right">输入新密码：</div></td>
                        <td><input type="password" name="COL_Userpass" class="input" datatype="*" /> <font color="#FF0000">*</font>
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
                          <input type="hidden" name="COL_Userverification" value="[.$faq[2].]" />
                          <input type="hidden" name="COL_Usercode" value="[.$faq[3].]" />
                        </td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger radius-5 pt-10 pb-10 pl-20 pr-20 mt-10" /></td>
                      </tr>
                </table>
                </form>
                [./if.]
                
                <link rel="stylesheet" href="../../function/plugs/Validform/style.css" type="text/css" />
                <script type="text/javascript" src="../../function/plugs/Validform/Validform_v5.3.2.js"></script>
                <script type="text/javascript">
                $(function(){
                    $(".registerform").Validform();  //就这一行代码！;
                })
                </script>
                [.*找回密码表单结束*.]
                
                </div>
                <div class="f-r emmm_right2">
                    <div class="regtologin">
                      <table width="90%" border="0" align="center" cellpadding="10">
                        <tr>
                          <td><a href="[.$webpath.]client/user/?cn-reg.html">免费注册</a></td>
                        </tr>
                      </table>
                  </div>
                </div>
    	</div>
    </div>
    [.include file="cn_foot.html".]
</div>
</body>
</html>
